body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Intro Overlay */
#intro {
  position: fixed;
  inset: 0;
  background-color: rgb(197, 172, 143); 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  z-index: 9999;
  animation: fadeOut 2s ease-in-out forwards;
  animation-delay: 3s;
}

#intro img {
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  animation: imageFade 3s ease-in-out forwards;
}

/* Animationen */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes imageFade {
  0% { opacity: 0; transform: scale(1.1); }
  20% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

.background {
  background-color: rgb(197, 172, 143);
  box-shadow: inset 3vw 0 3vw rgba(0, 0, 0, 0.4),   /* linker Schatten */
              inset -3vw 0 3vw rgba(0, 0, 0, 0.4); /* rechter Schatten */
}


/* Überschriften */
h2 {
  text-align: center;
  font-size: 4vw;
  color: rgb(90, 46, 46);
  text-shadow: 0.2vw 0.2vw rgba(0, 0, 0, 0.5);
}

h4 {
  text-align: center;
  font-size: 3vw;
  color: rgb(90, 46, 46);
}

/* Header */
.header-container {
  position: relative;
  height: 100vh;
  background-image: url('/Bilder/Bandfoto.png');
  background-size: cover;
  background-position: center;
}

.logo-image {
  position: absolute;
  left: 3vw;
  top: 2vh;
  height: 16vh;
  width: auto;
  z-index: 1;
  animation: logoPop 3s ease-out;
}

@keyframes logoPop {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Menü */
.menu {
  position: absolute;
  white-space: nowrap;
  top: 4vh;
  right: 4vw;
  display: flex;
  gap: 3vw;
  z-index: 10;
}

.menu-toggle {
  display: none;
  position: absolute;
  top: 5vh;
  right: 3vw;
  font-size: 4vw;
  background: none;
  border: 0.5vw solid white;
  color: white;
  z-index: 11;
  cursor: pointer;
}

.menu-link {
  color: white;
  text-decoration: none;
  margin-left: 3vw;
  font-size: 1.8vw;
  font-weight: bold;
}

.menu-title {
  position: absolute;
  top: 1vh;        /* gleiche Höhe wie der Hamburger-Button */
  left: 50%;                 /* zentriert */
  transform: translateX(-50%);   
  color: white;
  font-size: 6vw;
  font-weight: bold;
  display: none;   /* erst sichtbar, wenn Menü geöffnet */
  z-index: 60;     /* über Menübox legen */
}

/* Sobald Menü sichtbar ist → Titel sichtbar machen */
.menu-title.show {
  display: block;
}

.link {
  color: black;
  text-decoration: underline;
}

.menu-toggle:hover {
  font-size: 5vw;
}
.menu-link:hover {
  text-decoration: underline;
}

/* Headline */
h1 {
  position: absolute;
  top: 25vh; 
  left: 50%;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  font-size: 6vw;
  z-index: 1;
  color: white;
  text-shadow: 0.4vw 0.4vw rgba(0, 0, 0, 0.5);
}

h1 .headline2 {
  color: rgb(197, 172, 143);
}

/* Textbox mit Rahmen */
.text-rahmen {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.4vw solid rgb(90, 46, 46);
  border-radius: 2vw;
  background-color: #fff7e6;
  padding: 2vh 3vw;
  margin: 5vh auto;
  max-width: 70vw;
  box-shadow: 0 0 3vw rgba(0, 0, 0, 0.5);
}

.rahmen-bild {
  height: 10vh;
  width: auto;
}

.rahmen-text {
  padding: 0 2vw;
  font-size: 1.3vw;
  line-height: 1.6;
  color: #333;
  text-align: center;
  flex: 1;
}

/* Scroll-Effekt Standardzustand */
.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Sobald sichtbar */
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Abstände */
.abstand {
  margin: 12vh;
}

/* Footer */
.container-bottom {
  width: 100%;
  text-align: center;
  display: flex;
}

.bottom-link {
  color: white;
  text-decoration: none;
  text-align: center;
  margin-left: 27.5vw;
  font-size: 1.5vw;
  margin-bottom: 20px;
}

/* Datenschutz-Popup */
#datenschutz-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#datenschutz-box {
  background-color: rgb(204, 189, 180);
  padding: 2vh 3vw;
  border: 0.4vw solid rgb(90, 46, 46);
  border-radius: 1.2vw;
  max-width: 40vw;
  text-align: center;
  box-shadow: 0 0.4vw 1vw rgba(0,0,0,0.2);
}

#datenschutz-box button {
  margin-top: 3vh;
  padding: 1vh 2vw;
  font-size: 2vw;
  background-color: #2563EB;
  color: white;
  border: none;
  border-radius: 0.8vw;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}


#datenschutz-box button:hover {
  transform: scale(1.08);
  background-color: rgb(0,0,0);
}

/* Allgemeine Änderungen für Mobile Ansicht */
@media (max-width:800px) {
  .header-container {
    height: 55vh;
  }
  .logo-image {
    height: 13vh;
  }
  h2 {
    font-size: 6vw;
  }
  .menu {
    max-width: 80vw;
  }
  .menu-link {
    font-size: 5vw;
  }
}

/* Resizing Header-Container */
@media (max-width: 1200px) {
  .header-container {
    height: 90vh;
  }
}

@media (max-width: 1000px) {
  .header-container {
    height: 75vh;
  }
  .logo-image {
    height: 13vh;
  }
  h1 {
    top: 20vh;
  }
}

@media (max-width: 900px) {
  .header-container {
    height: 65vh;
  }
  .logo-image {
    height: 11vh;
  }
}

@media (max-width: 750px) {
  .header-container {
    height: 50vh;
  }
  .logo-image {
    height: 10vh;
  }
  h1 {
    top: 16vh;
  }
  .menu-title {
    font-size: 7vw;
  }
}
/* Mobile Ansicht: Menü Overlay */
@media (max-width: 1050px) {
  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 90vw;
    transform: translate(-50%, -50%);
    background-color: rgb(90, 46, 46);
    outline: 0.4vw solid white;
    outline-offset: -2vw;
    border: 0.4vw solid white;
    border-radius: 2vw;
    padding: 4vh 4vw;
    z-index: 50;
    box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.4);
  }

  .menu-link {
    text-align: left;
    color: white;
    margin: 1vh 0;
    font-size: 4vw;
    text-decoration: none;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
  .abstand {
    margin: 5vh;
  }
  h1{
        font-size: 5.5vw;
    }
    h2 {
        font-size: 5vw;
        margin-bottom: -2vh;
    }
    .text-rahmen {
        max-width: 90vw;
    }
    .rahmen-text {
        font-size: 2.4vw;
    }
    .rahmen-bild {
        height: 5.5vh;
    }
}

/* Smartphone-Modus 
Smartphones haben in der Regel eine Breite von unter 400px */
@media (max-width:400px) {
    h1 {
        top: 11vh;
        white-space: normal; /* Zeilenumbruch erlauben */
        font-size: 6vw; 
        text-align: center;     /* Überschrift insgesamt etwas kleiner */
    }
    h1 .headline2 {
        display: block;       /* sorgt dafür, dass der "größere" Teil in neuer Zeile steht */
        font-size: 8vw; 
        white-space: nowrap;     /* größer als der restliche Text */
    }
    .header-container {
        height: 40vh;
        border-bottom: 5px solid rgb(90, 46, 46);
    }
    h2 {
        font-size: 7vw;
    }
    .text-rahmen {
        max-width: 90vw;
    }
    .rahmen-text {
        font-size: 3vw;
    }
    .rahmen-bild {
        height: 5.5vh;
    }
    .logo-image {
        height: 9vh;
    }
    #datenschutz-box {
        max-width: 95vw;
    }
    #datenschutz-box button {
      font-size: 5vw;
    }
    h4 {
      font-size: 5vw;
    }
    .bottom-link {
      font-size: 3vw;
    }
    .menu-toggle {
      font-size: 8vw;
    }
    .menu-title {
      font-size: 8vw;
    }
}


